package com.xl.event.publish;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;
import org.springframework.stereotype.Component;

//恒恒写的这个我看不懂 不晓得什么意思  个人觉得应该直接使用ApplicationEventPublisher 发布事件就结束了
//@Component
public class AlarmEventPublisherAware{}
//implements ApplicationEventPublisherAware {
//
//    private static ApplicationEventPublisher applicationEventPublisher ;
//
//    @Override
//    public void setApplicationEventPublisher(ApplicationEventPublisher publisher) {
//        AlarmEventPublisherAware.applicationEventPublisher = publisher ;
//    }
//
//    public void publishEvent(ApplicationEvent applicationEvent){
//        applicationEventPublisher.publishEvent(applicationEvent);
//    }
//
//
//}
